package com.zjitc.service;

import com.zjitc.model.Cart;
import com.zjitc.model.Cat;
import com.zjitc.model.User;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/23 13:30
 * @description:
 */
public interface ManageService {

  List<User> findAllUser();

  List<Cat> findAllCat();

  void deleteUser(Integer id);

  void deleteCat(Integer id);

  void updateUser();

  void updateCat();

  User insertUser();

  Cat insertCat();

  List<Cat> findCatByCatSpecies(String catSpecies);

  User manageLogin(String username, String password);

  int checkUser(String username);

  User checkByUsernameAndPassword(String username);

  User findUserInfo(String username);

  void editManage(String username, String email, String phone);

  User checkOldPwd(String password);

  void changePwd(String newPassword, String username);

  Cat findCatById(Integer id);

  void editCat(String catName, String sex, String catSpecies, String image, int id);

  List<Cart> findAllcartOrder();

  int checkOrderState(String username);

  String UserById(Integer id);

  void changeState(String uuid);
}
